home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / vikingw.dir / 01648_Script_Home < prev    next >
Text File  |  1995-09-12  |  9KB  |  273 lines

  1. global gbeenclicked, gQuest, gLeftHouseOpen, gRightHouseOpen
  2.  
  3. on VHomeRolloversLeft
  4.   set gbeenclicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(13) then
  7.       repeat while rollover(13)
  8.         ArrowCursor
  9.         set the locH of sprite 14 to 457
  10.         set the locV of sprite 14 to 338
  11.         updatestage
  12.       end repeat
  13.       set the locH of sprite 14 to 999
  14.       updatestage
  15.     else
  16.       if rollover(15) then
  17.         repeat while rollover(15)
  18.           ArrowCursor
  19.           resetRightHouse
  20.           set the locH of sprite 16 to 388
  21.           set the locV of sprite 16 to 127 
  22.           updatestage
  23.         end repeat
  24.         set the locH of sprite 16 to 999
  25.         updatestage
  26.       else
  27.         if rollover(17) then
  28.           repeat while rollover(17)
  29.             ArrowCursor
  30.             set the locH of sprite 18 to 492
  31.             set the locV of sprite 18 to 261
  32.             updatestage
  33.           end repeat
  34.           set the locH of sprite 18 to 999
  35.           updatestage
  36.         else
  37.           if rollover(41) then
  38.             HandCursor
  39.           else
  40.             if rollover(42) then
  41.               HandCursor
  42.             else
  43.               if the mousecast = the castnum of sprite 8 then
  44.                 repeat while the mousecast = the castnum of sprite 8
  45.                   VikingCursor
  46.                   if the mousedown then
  47.                     puppetsprite 8, true
  48.                     Puppetsound "SV220101.AIF"
  49.                     updatestage
  50.                     wait .5
  51.                     set the locH of sprite 8 to -400
  52.                     updatestage
  53.                     set gLeftHouseOpen = 1
  54.                   end if
  55.                 end repeat
  56.               else
  57.                 if rollover(11) then
  58.                   if gLeftHouseOpen = 1 then
  59.                     repeat while rollover(11)
  60.                       ArrowCursor
  61.                       set the locH of sprite 12 to 245
  62.                       set the locV of sprite 12 to 374
  63.                       updatestage
  64.                     end repeat
  65.                     set the locH of sprite 12 to 999
  66.                     updatestage
  67.                   end if
  68.                 else
  69.                   if rollover(19) then
  70.                     if gLeftHouseOpen = 1 then
  71.                       repeat while rollover(19)
  72.                         ArrowCursor
  73.                         set the locH of sprite 20 to 225
  74.                         set the locV of sprite 20 to 313
  75.                         updatestage
  76.                       end repeat
  77.                       set the locH of sprite 20 to 999
  78.                       updatestage
  79.                     end if
  80.                   else
  81.                     if rollover(21) then
  82.                       if gLeftHouseOpen = 1 then
  83.                         repeat while rollover(21)
  84.                           ArrowCursor
  85.                           set the locH of sprite 22 to 321
  86.                           set the locV of sprite 22 to 358
  87.                           updatestage
  88.                         end repeat
  89.                         set the locH of sprite 22 to 999
  90.                         updatestage
  91.                       end if
  92.                     else
  93.                       ArrowCursor
  94.                     end if
  95.                   end if
  96.                 end if
  97.               end if
  98.             end if
  99.           end if
  100.         end if
  101.       end if
  102.     end if
  103.   end if
  104.   RandomQuestion(gQuest)
  105. end
  106.  
  107. on VHomeRolloversRight
  108.   set gbeenclicked = 0
  109.   if (not(CheckClickedStatus(gQuest))) then
  110.     if rollover(6) then
  111.       ArrowCursor
  112.       repeat while rollover(6)
  113.         resetRightHouse
  114.         set the locH of sprite 27 to 457
  115.         set the locV of sprite 27 to 177
  116.         updatestage
  117.       end repeat
  118.       set the locH of sprite 27 to 999
  119.       updatestage
  120.     else
  121.       if rollover(48) then
  122.         ArrowCursor
  123.         repeat while rollover(48)
  124.           resetRightHouse
  125.           set the locH of sprite 28 to 451
  126.           set the locV of sprite 28 to 234
  127.           updatestage
  128.         end repeat
  129.         set the locH of sprite 28 to 999
  130.         updatestage
  131.       else
  132.         if rollover(9) then
  133.           ArrowCursor
  134.           repeat while rollover(9)
  135.             resetRightHouse
  136.             set the locH of sprite 39 to 451
  137.             set the locV of sprite 39 to 284 
  138.             updatestage
  139.           end repeat
  140.           set the locH of sprite 39 to 999
  141.           updatestage
  142.         else
  143.           if rollover(10) then
  144.             ArrowCursor
  145.             repeat while rollover(10)
  146.               set the locH of sprite 11 to 277
  147.               set the locV of sprite 11 to 382
  148.               updatestage
  149.             end repeat
  150.             set the locH of sprite 11 to 999
  151.             updatestage
  152.           else
  153.             if rollover(12) then
  154.               ArrowCursor
  155.               repeat while rollover(12)
  156.                 set the locH of sprite 13 to 397
  157.                 set the locV of sprite 13 to 373
  158.                 updatestage
  159.               end repeat
  160.               set the locH of sprite 13 to 999
  161.               updatestage
  162.             else
  163.               ArrowCursor
  164.               if rollover(14) then
  165.                 repeat while rollover(14)
  166.                   resetRightHouse
  167.                   set the locH of sprite 15 to 550
  168.                   set the locV of sprite 15 to 308
  169.                   updatestage
  170.                 end repeat
  171.                 set the locH of sprite 15 to 999
  172.                 updatestage
  173.               else
  174.                 if rollover(17) then
  175.                   ArrowCursor
  176.                   repeat while rollover(17)
  177.                     set the locH of sprite 18 to 339
  178.                     set the locV of sprite 18 to 317
  179.                     updatestage
  180.                   end repeat
  181.                   set the locH of sprite 18 to 999
  182.                   updatestage
  183.                 else
  184.                   if rollover(21) then
  185.                     ArrowCursor
  186.                     repeat while rollover(21)
  187.                       set the locH of sprite 22 to 457
  188.                       set the locV of sprite 22 to 338
  189.                       updatestage
  190.                     end repeat
  191.                     set the locH of sprite 22 to 999
  192.                     updatestage
  193.                   else
  194.                     if the mousecast = the castnum of sprite 7 then
  195.                       repeat while the mousecast = the castnum of sprite 7
  196.                         VikingCursor
  197.                         if the mousedown then
  198.                           puppetsprite 7, true
  199.                           PUPPETSOUND "SV220101.AIF"
  200.                           updatestage
  201.                           wait .5
  202.                           set the locH of sprite 7 to -400
  203.                           updatestage
  204.                           set gRightHouseOpen = 1
  205.                         end if
  206.                       end repeat
  207.                       ArrowCursor
  208.                     else
  209.                       if rollover(20) then
  210.                         if gRightHouseOpen = 1 then
  211.                           ArrowCursor
  212.                           repeat while rollover(20)
  213.                             set the locH of sprite 40 to 468
  214.                             set the locV of sprite 40 to 167
  215.                             updatestage
  216.                           end repeat
  217.                           set the locH of sprite 40 to 999
  218.                           updatestage
  219.                         end if
  220.                       else
  221.                         if rollover(16) then
  222.                           ArrowCursor
  223.                           if gRightHouseOpen = 1 then
  224.                             repeat while rollover(16)
  225.                               set the locH of sprite 43 to 535
  226.                               set the locV of sprite 43 to 194
  227.                               updatestage
  228.                             end repeat
  229.                             set the locH of sprite 43 to 999
  230.                             updatestage
  231.                           end if
  232.                         else
  233.                           ArrowCursor
  234.                         end if
  235.                       end if
  236.                     end if
  237.                   end if
  238.                 end if
  239.               end if
  240.             end if
  241.           end if
  242.         end if
  243.       end if
  244.     end if
  245.   end if
  246.   RandomQuestion(gQuest)
  247. end
  248.  
  249.  
  250. on resetRightHouse
  251.   set the locH of sprite 7 to 401
  252.   set the locV of sprite 7 to 199
  253.   set gRightHouseOpen = 0
  254.   set the locH of sprite 8 to 155
  255.   set the locV of sprite 8 to 320
  256.   set gLeftHouseOpen = 0
  257.   puppetsprite 8, false
  258.   puppetsprite 7, false
  259.   updatestage
  260. end
  261.  
  262. on resetLeftHouse
  263.   set the locH of sprite 8 to 155
  264.   set the locV of sprite 8 to 320
  265.   set gLeftHouseOpen = 0
  266.   set the locH of sprite 7 to 401
  267.   set the locV of sprite 7 to 199
  268.   set gRightHouseOpen = 0
  269.   puppetsprite 8, false
  270.   puppetsprite 7, false
  271.   updatestage
  272. end
  273.